package com.anlogic.sdk.efuse.model;

import java.util.ArrayList;
import java.util.List;

public enum AlgorithmType {
	SHA256("SHA256", "SHA-256"), SM3("SM3", "SM3");
	
	private String id;
	
	private String name;
	
	AlgorithmType(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public String getId() {
		return this.id;
	}
	
	public String getName() {
		return this.name;
	}
	
	public static List<String> getAllIds() {
        List<String> list = new ArrayList<>();
        AlgorithmType[] values = values();
        for(AlgorithmType item : values) {
        	list.add(item.getId());
        }
        return list;
    }
	
	public static List<String> getAllNames() {
        List<String> list = new ArrayList<>();
        AlgorithmType[] values = values();
        for(AlgorithmType item : values) {
        	list.add(item.getName());
        }
        return list;
    }
}
